import java.awt.*;
import javax.swing.*;
import java.applet.*;
public class sri extends JApplet
{
public void init()
{
Container cp=getContentPane();
cp.setLayout(new BorderLayout());
final String[]ColHeads={"name","phone","pin"};
final Object[][] data=
{
{"sri","236639","521256"},
{"sri","236639","521256"},
{"sri","236639","521256"},
};
JTable table=new JTable(data,ColHeads);
int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
JScrollPane jsp=new JScrollPane(table,v,h);
cp.add(jsp,BorderLayout.CENTER);
}
}
/*<applet code=sri width=300 height=200>
</applet>*/